
#include "msimpleplotplugin.h"


MSimplePlotPlugin::MSimplePlotPlugin(QObject *parent)
: QObject(parent)
{
   initialized = false;
}

void MSimplePlotPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (initialized)
        return;

    initialized = true;
}

bool MSimplePlotPlugin::isInitialized() const
{
    return initialized;
}

QWidget *MSimplePlotPlugin::createWidget(QWidget *parent)
{
  return new MSimplePlot(100,parent);
  
}

QString MSimplePlotPlugin::name() const
{
    return "MSimplePlot";
}

QString MSimplePlotPlugin::group() const
{
    return "Archimedes";
}

QIcon MSimplePlotPlugin::icon() const
{
    return QIcon(":/logo.png");
}

QString MSimplePlotPlugin::toolTip() const
{
    return "MSimplePlot";
}

QString MSimplePlotPlugin::whatsThis() const
{
    return "";
}

bool MSimplePlotPlugin::isContainer() const
{
    return false;
}

QString MSimplePlotPlugin::domXml() const
{
    return "<widget class=\"MSimplePlot\" name=\"statusBar\">\n"
           " <property name=\"geometry\">\n"
           "  <rect>\n"
           "   <x>0</x>\n"
           "   <y>0</y>\n"
           "   <width>75</width>\n"
           "   <height>25</height>\n"
           "  </rect>\n"
           " </property>\n"
           " <property name=\"toolTip\" >\n"
           "  <string>A status bar</string>\n"
           " </property>\n"
           " <property name=\"whatsThis\" >\n"
           "  <string>A status bar.</string>\n"
           " </property>\n"
           "<property name=\"sizePolicy\" >\n"
           " <sizepolicy>\n"
           "  <hsizetype>5</hsizetype>\n"
           "  <vsizetype>0</vsizetype>\n"
           "  <horstretch>0</horstretch>\n"
           "  <verstretch>0</verstretch>\n"
           " </sizepolicy>\n"
           "</property>\n"
           "<property name=\"value\" >\n"
           " <value>0</value>\n"
           "</property>"  
           "</widget>\n";
}

QString MSimplePlotPlugin::includeFile() const
{
    return "MSimplePlot";
}

QString MSimplePlotPlugin::codeTemplate() const
{
    return "";
}

Q_EXPORT_PLUGIN(MSimplePlotPlugin)
//Q_EXPORT_PLUGIN2(PStyledButton, MSimplePlotPlugin)
